package com.henu.util;

public class DwzResult {

    private String statusCode;
    private String message;
    private String navTabId;
    private String forwardUrl;
    private String callbackType;

    public static DwzResult buildSuccess(){
        DwzResult res=new DwzResult();
        res.setStatusCode("200");
        res.setMessage("操作成功");
        return res;
    }

    public static DwzResult buildError() {
        DwzResult res = new DwzResult();
        res.setStatusCode("300");
        res.setMessage("回话失败");
        return res;
    }

    public static DwzResult buildCloseCurent() {
        DwzResult res = new DwzResult();
        res.setStatusCode("200");
        res.setMessage("操作成功");
        res.setCallbackType("closeCurrent");
        return res;
    }

    public String getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(String statusCode) {
        this.statusCode = statusCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getNavTabId() {
        return navTabId;
    }

    public void setNavTabId(String navTabId) {
        this.navTabId = navTabId;
    }

    public String getForwardUrl() {
        return forwardUrl;
    }

    public void setForwardUrl(String forwardUrl) {
        this.forwardUrl = forwardUrl;
    }

    public String getCallbackType() {
        return callbackType;
    }

    public void setCallbackType(String callbackType) {
        this.callbackType = callbackType;
    }

}
